import { request } from '@umijs/max';

/**
 * 用户列表
 * @param {*} params
 * @returns
 */
export const getUserList = (params) =>
  request('admin/user/GetUserList', { params });

/**
 * 创建用户
 * @param {*} data
 * @returns
 */
export const createUser = (data) =>
  request('admin/user/CreateUser', { method: 'post', data });

/**
 * 创建用户
 * @param {*} data
 * @returns
 */
export const updateUser = (data) =>
  request('admin/user/UpdateUser', { method: 'post', data });
